package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

/**
 * 转账-常用联系人
 * @author XUZONGTIAN
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_frequent_contacts")
@Table(appliesTo = "mb_frequent_contacts", comment = "转账-常用联系人")
public class FrequentContacts extends BaseModel implements Serializable {

	private static final long serialVersionUID = 4007242630571715414L;

	/**
	 * 用户ID
	 */
	@ApiModelProperty(value = "用户ID")
	@Column(name = "user_id", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '用户ID'")
	private String userId;

	/**
	 * 联系人姓名
	 */
	@ApiModelProperty(value = "联系人姓名")
	@Column(name = "name", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '联系人姓名'")
	private String name;

	/**
	 * 发行
	 */
	@ApiModelProperty(value = "发行")
	@Column(name = "bank_type", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '发行'")
	private String bankType;

	/**
	 * 卡号
	 */
	@ApiModelProperty(value = "卡号")
	@Column(name = "card_number", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '卡号'")
	private String cardNumber;

	/**
	 * 开户行地址
	 */
	@ApiModelProperty(value = "开户行地址")
	@Column(name = "account_bank_address", columnDefinition = "VARCHAR(50) NOT NULL COMMENT '开户行地址'")
	private String accountBankAddress;

	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	@Column(name = "sort", columnDefinition = "INT(11) NOT NULL COMMENT '排序'")
	private int sort;

}
